import request from '@/utils/request'

// 查询任务类型字典列表
export function listTypetdist(query) {
  return request({
    url: '/task/typetdist/list',
    method: 'get',
    params: query
  })
}

// 查询任务类型字典详细
export function getTypetdist(id) {
  return request({
    url: '/task/typetdist/' + id,
    method: 'get'
  })
}

// 新增任务类型字典
export function addTypetdist(data) {
  return request({
    url: '/task/typetdist',
    method: 'post',
    data: data
  })
}

// 修改任务类型字典
export function updateTypetdist(data) {
  return request({
    url: '/task/typetdist',
    method: 'put',
    data: data
  })
}

// 删除任务类型字典
export function delTypetdist(id) {
  return request({
    url: '/task/typetdist/' + id,
    method: 'delete'
  })
}

// 导出任务类型字典
export function exportTypetdist(query) {
  return request({
    url: '/task/typetdist/export',
    method: 'get',
    params: query
  })
}